package cn.iocoder.yudao.module.digital.controller.admin.thesis.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 论文新增/修改 Request VO")
@Data
public class ThesisSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24392")
    private Integer id;

    @Schema(description = "论文标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "论文标题不能为空")
    private String title;

    @Schema(description = "发表时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "发表时间不能为空")
    private LocalDateTime postedTime;

    @Schema(description = "发表刊物/论文集", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "发表刊物/论文集不能为空")
    private String publications;

    @Schema(description = "所属单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "所属单位不能为空")
    private Integer affiliation;

    @Schema(description = "作者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "作者不能为空")
    private String author;

    @Schema(description = "佐证地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.chanchat.cn")
    @NotEmpty(message = "佐证地址不能为空")
    private List<String> evidenceUrl;

    @Schema(description = "作者类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "作者类型不能为空")
    private Integer authorType;

    @Schema(description = "贡献率", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "贡献率不能为空")
    private String rate;

    @Schema(description = "论文类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "论文类型不能为空")
    private Integer type;

    @Schema(description = "保留字段")
    private String reserved1;

    @Schema(description = "保留字段")
    private String reserved2;

    @Schema(description = "保留字段")
    private String reserved3;

    @Schema(description = "保留字段")
    private String reserved4;

    @Schema(description = "保留字段")
    private String reserved5;


}